package com.example.myapplication9;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class show extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show);
        TextView num1=findViewById(R.id.num1);
        TextView contain1=findViewById(R.id.contain1);
        TextView choA1=findViewById(R.id.choA1);
        TextView choB1=findViewById(R.id.choB1);
        TextView choC1=findViewById(R.id.choC1);
        TextView choD1=findViewById(R.id.choD1);
        Intent intent=getIntent();
        String id=intent.getStringExtra("id");
        String title=intent.getStringExtra("title");
        String A=intent.getStringExtra("A");
        String B=intent.getStringExtra("B");
        String C=intent.getStringExtra("C");
        String D=intent.getStringExtra("D");
        num1.setText(id);
        contain1.setText(title);
        choA1.setText(A);
        choB1.setText(B);
        choC1.setText(C);
        choD1.setText(D);
    }

    public void backback(View view) {
        Intent intent=new Intent(show.this,search.class);
        startActivity(intent);
    }
}